<!--活动商品-->
<style>
.fui-number .minus:before, .fui-number .plus:before {
	border-left: 0 solid #d9d9d9;
}
.fui-number .minus:after, .fui-number .plus:after {
	border-right: 0 solid #d9d9d9;
}
.fui-number:before {
	border-top: 0 solid #d9d9d9;
}
.fui-number:after {border-top: 0 solid #d9d9d9;}
.fui-number .num {
	color:#666;
}
.fui-number .num {
	color:#666;
}
.fui-number.small {
	height: 1.2rem;
	width: auto;
	line-height: 1.2rem;
}
.fui-number .minus, .fui-number .plus {
	z-index:0;
}
.fui-number.small .minus{
	color: red;
	padding-top:1px;
	border: 1px solid red;
	border-radius:50%;
}
 .fui-number.small .plus {
	color: #fff;
	padding-top:1px;
	background: red;
	border: 1px solid red;
	border-radius:50%;
}
</style>
<div ng-if="pagedata.msggoods" class="popup" style="z-index:10008">
	<div class="popup-body">
		<div class="popup-bottom" style="padding-bottom:3.5rem">
			<i class="closed icon icon-cuowu" ng-click="pagedata.msggoods=false"></i>
			<div class="fui-cell-group radius" style="max-height:20rem;overflow-y:scroll">
				<div class="fui-cell">
					<div class="fui-cell-text bold">{{pagedata.item.typename}}商品</div>
				</div>
				<div ng-repeat="g in pagedata.item.goods" class='fui-list align-start' style="padding-top:0.5rem;border-top: 1px solid #ebebeb;">
					<div class='fui-list-media' ng-click="pagedata.goods=g;pagedata.showgoods=true">
					   <img style="width: 5rem;height: 5rem;" ng-src="{{tomedia(g.image) || '../core/resource/images/nopic.jpg'}}" />
					</div>
					<div class='fui-list-inner'>
						<div class='text bold'>{{g.title}}</div>
						<div class="fui-cellone" style="padding:0.5rem 0;">
							<div class='fui-cellone-label' style="width:auto">
							   <div class="bigprice red bold" style="font-size:1rem;position:relative">
								￥{{g.price}}
								</div>
							</div>
							<div class='fui-cellone-info' style="padding-left:0.2rem">
								<span class="arrow-left"></span><span style="display:inline-block;padding:0.1rem 0.3rem;color:#fff;font-size:0.5rem;background:#ff4e2c;border-radius:0.1rem;">{{pagedata.item.unitname || '活动'}}价</span>
							</div>
							<div class='fui-cellone-remark noremark'>
								<span ng-if="g.total" style="font-size:0.6rem;color:#666">库存{{g.lastnum}}</span>
								<span ng-if="!g.total" style="font-size:0.6rem;color:#666">库存不限</span>
							</div>
						</div>
						<div class="fui-cellone" style="padding:0;">
							<div ng-if="pagedata.item.gamename=='jy_merchgame_ms' && g.percent!=-1" class='fui-cellone-info'>
							<span class="progress" style="float: left;margin-top:0.35rem;margin-bottom:0.25rem;width: 4.5rem;height: 0.5rem;border-radius: .5rem;overflow: hidden;">
								<div class="progress-bar" role="progressbar" aria-valuenow="2" aria-valuemin="0" aria-valuemax="100" style="width: {{g.percent || 1}}%;background-color:red;"><span class="sr-only">60% Complete</span></div>
							</span>
							<span class="process-text" style="float: left;font-size:0.55rem;margin:0.3rem;">已秒 {{g.percent || 0}}%</span>
							</div>
							<div ng-if="pagedata.item.gamename=='jy_merchgame_fx'" class='fui-cellone-info' style="height:1.3rem">
							<span class="btn01">赚佣金</span>
							<span class="btn02">￥{{g.fxfee01 || '0.00'}}</span>
							</div>
							<div ng-if="pagedata.item.gamename=='jy_merchgame_pt'" class='fui-cellone-info' style="height:1.3rem">
							<span class="btn01">{{pagedata.item.gameset.teamnum || 0}}人起拼</span>
							<span class="btn02">不限制上限</span>
							</div>
							<div ng-if="pagedata.item.gamename=='jy_merchgame_bm'" class='fui-cellone-info' style="height:1.3rem">
							<span class="btn01">帮卖赚</span>
							<span class="btn02">￥{{g.bmfee || '0.00'}}</span>
							</div>
						</div>
						<div class="fui-cellone" style="padding:0;">
							<div class='fui-cellone-info' ng-if="g.buynum>0">
								<span class="label label-info">限购</span> <span style="font-size:0.6rem;color:#666">每人最多买{{g.buynum}}件</span>
							</div>
							<div class='fui-cellone-info' ng-if="!g.buynum || g.buynum==0">
								<span class="label label-info">不限购</span> <span style="font-size:0.6rem;color:#666">每人可买多件</span>
							</div>
							<div ng-if="pagedata.item.status==2" class='fui-cellone-remark noremark'>
								<span class="btn btn-sm btn-gray" style="color:#fff">已结束</span>
							</div>
							<div ng-if="pagedata.item.status!=2" class='fui-cellone-remark noremark'>
								<div ng-if="pagedata.item.status!=2" class="fui-number small">
										<div ng-if="g.cartnum>0" class="minus" ng-click="pagedata.minus($index)"><i class="icon icon-subtract" style="font-size:0.7rem"></i></div>
										<input ng-if="g.cartnum>0" class="num shownum" type="text" ng-model="g.cartnum" style="width:1rem" ng-change="pagedata.refresh()"/>
										<div class="plus" ng-click="pagedata.plus($index)"><i class="icon icon-tianjia" style="font-size:0.7rem"></i></div>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
			<div ng-if="pagedata.item.status==1" class="fui-navbar" style="background:#fff;height:auto;padding:0.3rem">
				<a class="nav-item" href="javascript:" onclick="$('#showsharecover').modal();">
					<div class="fee-tag-nav" style="line-height: 2rem;">
						<span style="width:100%">￥ <span style="font-size:0.8rem">{{pagedata.totalprice||'0.00'}}</span></span>
					</div>
				</a>
				<a ng-if="pagedata.item.gamename=='jy_merchgame_fx'" class="nav-item" href="javascript:" ng-click="post(pagedata.item,'/item/canyu/pid='+pagedata.item.id)" target="_blank">
					<div class="fee-tagup-nav" style="border-radius:0;line-height: 2rem;font-size:0.7rem;background:#FCC600">
						参与种草
					</div>
				</a>
				<a class="nav-item" href="javascript:" ng-click="pagedata.check_buy();" target="_blank">
					<div ng-if="pagedata.item.gamename=='jy_merchgame_fx'" class="fee-tagup-nav" style="line-height: 2rem;font-size:0.7rem">
						立即购买
					</div>
					<div ng-if="pagedata.item.gamename!='jy_merchgame_fx'" class="fee-tagup-nav" style="line-height: 2rem;font-size:0.7rem">
						立即{{pagedata.item.unitname}}
					</div>
				</a>
			</div>
			<div ng-if="pagedata.item.status==2" class="fui-navbar" style="background:#fff;height:auto;padding:0.3rem">
				<a class="nav-item" target="_blank">
					<div class="fee-tagup-nav" style="border-radius:1rem;line-height: 2rem;font-size:0.7rem;background:#999">
						活动已结束
					</div>
				</a>
			</div>
	</div>
</div>
</div>